package com.ming.service;

import com.ming.client.UserRemoteClient;
import com.ming.pojo.Product;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Xu
 * Created by Intellij IDEA.
 * @create 2021/8/2 15:47
 */
@Component
public class UserRemoteClientFallback implements UserRemoteClient{
    public List<Product> listProducts(){
        List<Product> result = new ArrayList<>();
        result.add(new Product(0,"产品数据微服务不可用",0));
        return result;
    }
}
